//
//  SettingsTableViewController.m
//  高仿萝卜书摘
//
//  Created by 谢俊逸 on 2016/11/26.
//  Copyright © 2016年 谢俊逸. All rights reserved.
//

#import "SettingsTableViewController.h"

@interface SettingsTableViewController ()

@end

static NSString *const settingsTableViewCellId = @"settingsTableViewCellId";

@implementation SettingsTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:settingsTableViewCellId];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

#pragma mark - Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 4;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    
    switch (section) {
        case 0:
            return 1;
            break;
        case 1:
            return 5;
            break;
        case 2:
            return 3;
            break;
        case 3:
            return 1;
            break;
            
        default:
            return 0;
            break;
    }
    return 0;
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:settingsTableViewCellId forIndexPath:indexPath];
    return cell;
}



@end
